<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/12/3
 * Time: 10:15 AM
 */

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class OrderRefundModel extends Model
{
    protected $table = 'order_refund';

    // 用户发起退款
    public const TYPE_USER_APPLY = 1;

    // 管理员发起退款
    public const TYPE_ADMIN_APPLY = 2;

    public function order()
    {
        return $this->hasOne(OrderModel::class, 'id', 'order_id');
    }
}
